package cn.iocoder.yudao.module.common.controller.admin.likes.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 点赞新增/修改 Request VO")
@Data
public class LikesSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "18159")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30599")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "目标资源ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10775")
    @NotNull(message = "目标资源ID不能为空")
    private Long targetId;

    @Schema(description = "目标资源类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "目标资源类型不能为空")
    private String targetType;

    @Schema(description = "点赞时间")
    private LocalDateTime likeTime;

    @Schema(description = "创建人", example = "张三")
    private String creatorName;

    @Schema(description = "更新人", example = "芋艿")
    private String updaterName;

    @Schema(description = "版本号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "版本号不能为空")
    private Integer version;

}